/**
 * SelectNode.h
 * Coyright (c) 2009 Xiaofeng Gu. All Rights Reserved.
 * Author : Xiaofeng Gu
 *
 * Creation Data : 2009/08/28
 */
#pragma once

#include "SKPipeline.h"


class CKnot;
class CSelectNodeProcessCard
{
public:
	CSelectNodeProcessCard() : m_pParent(NULL) {}
	virtual~ CSelectNodeProcessCard() {}

	void							Reset() {}

	void							SetSelectPt(int x, int y) { m_iSelectX = x; m_iSelectY = y; }
	void							GetSelectPt(int& x, int& y) { x = m_iSelectX; y = m_iSelectY; }

	void							SetParent(CKnot* pParent) { m_pParent = pParent; }
	CKnot*							GetParent() { return m_pParent; }

private:
	int								m_iSelectX;
	int								m_iSelectY;
	CKnot*							m_pParent;
};


class CSelectNode : public CSKDistributor
{
public:
	DECALRE_INTERFACE_PART(OnExecute);

	CSelectNode(ISKPipeline* pNextProcess, CProcessDraft* pData)
		: CSKDistributor(pNextProcess, pData)
	{}

	virtual ~CSelectNode() {}
};